html,
body {
    position: relative;
    margin: 0;
    z-index: 1;
    background: #fff;
}

body {
    &::after,
    &::before {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        content: "";
        background-size: 25%;
        background-repeat: no-repeat;
        z-index: -1;
        @media (max-width: 750px) {
            & {
                display: none;
            }
        }
    }
    &::after {
        background-image: url("@/assets/image/img1.png");
        background-position: right top;
        background-size: 25%;
    }
    &::before {
        background-image: url("@/assets/image/img2.png");
        background-position: left top;
    }
}

#app {
    font-family: sans-serif;
    // font-family: "PingFang SC", "Avenir", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    z-index: 2;
    margin: 0 auto;
    min-height: 100vh;
    color: rgba(0, 0, 0, 1);
}

@media (min-width: 1000px) {
    html {
        font-size: 115.5px !important;
    }
}

@media (max-width: 405px) {
    html {
        // font-size: 14px !important;
    }
}

@media (min-width: 750px) and (max-width: 1272px) {
    html {
        // font-size: 13px !important;
    }
}

.main {
    max-width: 1472px;
    margin: 0 auto;
}
.main2 {
    max-width: 1270px;
    margin: 0 auto;
}

.f48 {
    font-size: 48px;
    @media (max-width: 750px) {
        font-size: 36px;
    }
}
.f40 {
    font-size: 40px;
    @media (max-width: 750px) {
        font-size: 30px;
    }
}
.f32 {
    font-size: 32px;
}
.f30 {
    font-size: 30px;
}
.f24 {
    font-size: 24px;
}
.f20 {
    font-size: 20px;
}
.f16 {
    font-size: 16px;
}
.f12 {
    font-size: 12px;
}
.fb {
    font-weight: bold;
}
.fb5 {
    font-weight: 500;
}
.fb6 {
    font-weight: 600;
}
.fb7 {
    font-weight: 700;
}
.fb8 {
    font-weight: 800;
}
.fb9 {
    font-weight: 900;
}
.tc {
    text-align: center;
}

.d {
    display: flex;
}

.dsb {
    display: flex;
    justify-content: space-between;
}

.ds {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dc {
    display: flex;
    align-items: center;
    justify-content: center;
}

.c1 {
    color: rgba(235, 0, 41, 1);
}
.c2 {
    color: rgba(255, 255, 255, 1);
}
.c3 {
    color: rgba(148, 148, 148, 1);
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

h2 {
    margin: 0;
    padding: 0;
    font-weight: 400;
}

a {
    font-family: "PingFang SC", "Avenir", Helvetica, Arial, sans-serif;
    color: #333;
}

p {
    margin: 0;
}

#nprogress {
    z-index: 99;
}

#nprogress .bar {
    background: #eb0029 !important;
    height: 3px !important;
}

#nprogress .peg {
    box-shadow: 0 0 2px #eb0029, 0 0 2px #eb0029 !important;
}

#nprogress .spinner {
    left: 60px;
}

#nprogress .spinner-icon {
    display: none;
    border-top-color: #eb0029 !important;
    border-left-color: #eb0029 !important;
}

.imgfont {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;

    &.zh,
    &.en {
        display: inline-block;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background-position: center;
        background-size: 100%;

        &.zh {
            // background-image: url("~@/assets/image/zh.png");
        }

        &.en {
            // background-image: url("~@/assets/image/en.png");
        }
    }
}
.van-button.van-button--primary {
    width: 100%;
    height: 60px;
    font-size: 20px;
    border-radius: 10px;
    background: #eb0029;
    border: none;
    // &.van-button--disabled {
    //     opacity: 1;
    //     background: rgba(193, 193, 193, 1);
    //     color: rgba(137, 137, 137, 1);
    // }
    @media (max-width: 680px) {
        & {
            height: 48px;
            font-weight: 500;
            font-size: 16px;
        }
    }
}
.van-button.van-button--success {
    width: 100%;
    height: 45px;
    background: rgba(43, 221, 199, 1);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    border: none;
}
.van-dialog__confirm,
.van-dialog__confirm:active {
    color: #4d3daa !important;
}
// .van-toast--text {
//     background: rgba(26, 22, 19, 1) linear-gradient(93deg,
//             rgba(237, 197, 159, .9) 0%,
//             rgba(237, 197, 159, .5) 100%) !important;
//     // color: #000!important;
//     border: 1px solid rgba(237, 197, 159, .9);
// }

.van-dialog.van-popup {
    @media (min-width: 680px) {
        width: 380px;
        .van-dialog__header {
            padding: 35px;
            font-size: 20px;
        }
        .van-button__text {
            font-size: 18px;
        }
    }
    width: 448px;
    padding: 30px 32px 20px 32px;
    border-radius: 20px;
    .van-dialog__header,
    .van-dialog__content {
        background: transparent !important;
        &.van-dialog__header {
            padding: 10px 0 30px 0;
            color: #000;
            font-size: 24px;
            font-weight: 400;
            color: #1f2120;
        }
    }

    .van-dialog__footer {
        padding-bottom: 10px;
        .van-button {
            font-weight: bold;
            height: 46px;
            color: #fff !important;
            font-size: 20px;
            font-weight: 400;
            box-sizing: border-box;
            border-radius: 10px;
            background: #eb0029;
            &.van-dialog__cancel {
                margin-right: 10px;
                color: #000 !important;
                font-weight: normal;
                border: 1px solid #eb0029;
                background: none !important;
            }
        }
    }
}
.van-pagination {
    padding: 12px 0;
    margin: 0 auto;
    .van-pagination__items {
        .van-hairline--surround {
            height: 32px;
            min-width: 32px;
            width: 32px;
            border: none;
            margin: 0 10px;
            color: #000;
            font-size: 12px;
            border: 1px solid rgba(34, 35, 40, 1);
            overflow: hidden;
            border-radius: 100px;
            &:after {
                display: none;
            }
            &:active {
                background: #eb0029;
                color: #fff;
                border-color: #eb0029;
            }
            button {
                cursor: pointer;
            }
            @media (max-width: 1000px) {
                & {
                    margin: 0 5px;
                }
            }
        }
        .van-pagination__item--prev,
        .van-pagination__item--next {
            flex: none;
            border-radius: 100px;
            color: #000;
            border: 1px solid rgba(34, 35, 40, 1);
        }
        .van-pagination__item--active {
            background: #eb0029;
            color: #fff;
            border-color: #eb0029;
        }
    }
}

.hideVan-popover__arrow {
    .van-popover__arrow {
        display: none;
    }
    .van-popover__content {
        background: transparent !important;
    }
}

.van-toast.van-toast--text {
    @media (min-width: 680px) {
        padding: 13px 20px;
        font-size: 16px;
    }
}

._showToast {
    flex-direction: row !important;
    align-items: center;
    padding: var(--van-toast-text-padding) !important;
    min-height: auto !important;
    width: fit-content !important;
    .van-toast__icon {
        margin-right: 6px;
        font-size: 16px;
        color: rgba(89, 255, 88, 1);
    }
    .van-toast__text {
        margin-top: 0;
    }
}

._showToast2 {
    flex-direction: row !important;
    align-items: center;
    padding: var(--van-toast-text-padding) !important;
    min-height: auto !important;
    width: fit-content !important;
    .van-toast__icon {
        margin-right: 6px;
        font-size: 16px;
        color: #ee0a24;
    }
    .van-toast__text {
        margin-top: 0;
    }
}
.van-toast._showToast2,
.van-toast._showToast {
    @media (min-width: 680px) {
        & {
            font-size: 18px;
            .van-toast__icon {
                margin-right: 10px;
                font-size: 26px;
            }
        }
    }
}

.van-popover--dark {
    .van-popover__content {
        border-radius: 12px;
    }
}
